package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ErpOrderlogMapper;
import com.ruoyi.system.domain.ErpOrderlog;
import com.ruoyi.system.service.IErpOrderlogService;

/**
 * 订单日志Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-26
 */
@Service
public class ErpOrderlogServiceImpl implements IErpOrderlogService 
{
    @Autowired
    private ErpOrderlogMapper erpOrderlogMapper;

    /**
     * 查询订单日志
     * 
     * @param id 订单日志主键
     * @return 订单日志
     */
    @Override
    public ErpOrderlog selectErpOrderlogById(Long id)
    {
        return erpOrderlogMapper.selectErpOrderlogById(id);
    }

    /**
     * 查询订单日志列表
     * 
     * @param erpOrderlog 订单日志
     * @return 订单日志
     */
    @Override
    public List<ErpOrderlog> selectErpOrderlogList(ErpOrderlog erpOrderlog)
    {
        return erpOrderlogMapper.selectErpOrderlogList(erpOrderlog);
    }

    /**
     * 新增订单日志
     * 
     * @param erpOrderlog 订单日志
     * @return 结果
     */
    @Override
    public int insertErpOrderlog(ErpOrderlog erpOrderlog)
    {
        return erpOrderlogMapper.insertErpOrderlog(erpOrderlog);
    }

    /**
     * 修改订单日志
     * 
     * @param erpOrderlog 订单日志
     * @return 结果
     */
    @Override
    public int updateErpOrderlog(ErpOrderlog erpOrderlog)
    {
        return erpOrderlogMapper.updateErpOrderlog(erpOrderlog);
    }

    /**
     * 批量删除订单日志
     * 
     * @param ids 需要删除的订单日志主键
     * @return 结果
     */
    @Override
    public int deleteErpOrderlogByIds(Long[] ids)
    {
        return erpOrderlogMapper.deleteErpOrderlogByIds(ids);
    }

    /**
     * 删除订单日志信息
     * 
     * @param id 订单日志主键
     * @return 结果
     */
    @Override
    public int deleteErpOrderlogById(Long id)
    {
        return erpOrderlogMapper.deleteErpOrderlogById(id);
    }
}
